<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/tiles2/common.jsp" %>
<div class="page-header">
	<img class="fleft titlelogo" src="img/ext/glyphicons_138_picture.png">
	<h1>갤러리</h1>
</div>
<article>
	<div class="row">
		<div class="span5 offset1">
				<a class="btn btn-inverse" id="prevbtn"><i class="icon-chevron-left icon-white"></i>&nbsp;이전게시물</a>
				<a class="btn btn-inverse" id="nextbtn"><i class="icon-chevron-right icon-white"></i>&nbsp;다음게시물</a>
		</div>
		<div class="span5 tright"><a class="btn btn-inverse" id="newbtn"><i class="icon-plus-sign icon-white">&nbsp</i>새글쓰기</a></div>
	</div><!-- 상단 버튼 -->
	<div class="row">
		<div class="span10 offset1">
			<table class="table linetopdown dragdown">
				<caption class="caption">[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'</caption>
				<tbody>
					<tr class="vheader">
						<td >아시아 경제</td>
						<td class="vfooter tright" style="text-align:right">2012.07.28 16:02/11</td>
					</tr>
					<tr>
						<td colspan="2" class="vbody">[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'[날씨]"숨이 턱터" 전국 곳곳 '폭염경보'</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div><!-- 본문글 -->
	<div class="row">
		<div class="span5 offset1">
				<a class="btn btn-primary" id="updatebtn"><i class="icon-question-sign icon-white"></i>&nbsp;수정하기</a>
				<a class="btn btn-danger" id="deletebtn"><i class="icon-remove-sign icon-white"></i>&nbsp;삭제하기</a>
		</div>
		<div class="span5 tright"><a class="btn btn-inverse" id="listbtn"><i class="icon-list icon-white">&nbsp</i>목록으로</a></div>
	</div><!-- 하단 버튼 -->
	<div class="row topmargin">
		<div class="span10 offset1">
			<div><img class="fleft titlelogo" src="img/ext/glyphicons_309_comments.png"><h3>나도 한마디</h3></div>
			<table class="table linetopdown">
				<tr>
					<td style="width:20%">작성자</td>
					<td colspan="2">
						<p class="replyhdr1">작성일<span class="fright">[리플추가]</span></p>
						<p>comments</p>
					</td>
				</tr>
				<tr>
					<td style="width:20%">&nbsp;</td>
					<td colspan="2">
						<p class="replyhdr2">작성자<span class="fright">작성일</span></p>
						<p>comments</p>
					</td>
				</tr>
			</table>
		</div>
	</div><!-- 댓글목록 -->
	<div class="row topmargin">
		<div class="span10 offset1">
			<form id="comntfrm" class="well form-inline">
				<fieldset class="control-group info">
					<label>로그인 하세요</label>
					<textarea rows="8" class="span7" name="comments" id="comments"></textarea>
					<a class="btn" id="comntbtn">댓글쓰기</a>	
				</fieldset>
			</form>
		</div>
	</div><!-- 댓글쓰기 -->
</article>
<script type="text/javascript">
	$("#newbtn").on("click",function(event){
		$(location).Attr("href","<c:url value='/gallery/write.tiles'/>");
	});
	
	$("#listbtn").on("click",function(event){
		$(location).Attr("href","<c:url value='/gallery/list.tiles'/>");
	});
	
	$("#prevbtn").on("click",function(event){
		$(location).Attr("href","<c:url value='/gallery/list.tiles'/>");
	});
	$("#nextbtn").on("click",function(event){
		$(location).Attr("href","<c:url value='/gallery/list.tiles'/>");
	});
	
	$("#updatebtn").on("click",function(event){
		$(location).Attr("href","<c:url value='/gallery/write.tiles'/>");
	});
	$("#deletebtn").on("click",function(event){
		if(confirm("삭제하시겠습니까?"))
			$(location).attr("href","<c:url value='/gallery/deleteok.tiles'/>");
	});
	$("#comntbtn").on("click",function(event){
		$(location).Attr("href","<c:url value='/gallery/list.tiles'/>");
	});
</script>


















